package cn.eclass.bean;

import java.util.List;

import cn.eclass.bean.api.IGiftCategoryBean;
import cn.eclass.dao.AdCategoryDao;
import cn.eclass.dao.GiftCategoryDao;
import cn.eclass.entity.GiftCategoryEntity;

public class GiftCategoryBean implements IGiftCategoryBean {
	
    private GiftCategoryDao dao = new GiftCategoryDao();
	
	@Override
	public GiftCategoryEntity add(GiftCategoryEntity entity) {
        return dao.add(entity);
	}

	@Override
	public boolean update(GiftCategoryEntity entity) {
        return dao.update(entity);
	}

	@Override
	public boolean delete(int id) {
        return dao.delete(id);
	}

	@Override
	public GiftCategoryEntity get(int id) {
        return dao.select(id);
	}

	@Override
	public List<GiftCategoryEntity> list() {
		return dao.getList();
	}

}
